<?php
/**
 * Patient Signal upload initial form. Used in upload action in PatientSignalController.
 *
 * @package   views
 * @subpackage patientSignal
 * @since     1.0
 * @filesource
 */
?>
<h1>Choose Organization</h1>
<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'patient-signal-upload0-upload0-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'organizationId'); ?>
		<?php echo $form->dropDownList($model,'organizationId',CHtml::listData(User::getCurrentUser()->creatableOrganizations, 'id', 'name'),
				array('empty'=>'Please select an Organization')); ?>
		<?php echo $form->error($model,'organizationId'); ?>
	</div>


	<div class="row buttons">
		<?php echo CHtml::submitButton('Next',array('name'=>'upload_action')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->